//获取我的银行卡接口
var token = localStorage.getItem('tok');
$.ajax({
    type: "GET",
    url: $host+'/api/app/bank/bankInfo',
    async: true,
    dataType:'json',
    data:{
        'token':token
    },
    success: function(result){
        var data=result.data;
        $('.bankName').text(data.bankName);
        $('.bankNo').html(data.bankNo);
        $('.branchName').html(data.branchName);
        $('.city').text(data.city);
        $('.province').text(data.province);
        $('.userName').html(data.userName);
        $('.userPhone').html(data.userPhone);
    },
    error:function(){
        console.log('接口错误')
    }
});
//点击更改绑定
$('.btn').click(function(){
    window.location.href = "bangdinyhk.html?token="+token
})
//点击返回
$('.wdyhkfh').click(function(){
    window.location.href="gerenzx.html?token="+token;
})